package com.crlclr.data.qzone
{
	import com.crl.core.config.IXMLBindable;
	import com.crl.utils.XMLBindableUtil;
	import com.crlclr.common.SiteStatic;
	import com.crlclr.data.IPicture;
	import com.crlclr.utils.StringUtil;
	
	public class PictureVO implements IXMLBindable ,IPicture
	{
		public var _name:String;
		public var _desc:String;
		public var pre:String;
		public var url:String;
		public var origin_url:String;
		
		public var width:int;
		public var height:int;
		public function PictureVO()
		{
		}
		
		public function bindXML(xml:XML):void{
			XMLBindableUtil.bindXML(this,xml);
			
			this.url=StringUtil.substitute(url);
			this.pre=StringUtil.substitute(pre);
			
			
		}
		
		public function set name(value:String):void{
			this._name=value;
		}
		
		public function set desc(value:String):void{
			this._desc=StringUtil.trim(value);
		}
		
		public function get name():String{
			return this._name
		}
		
		public function get desc():String{
			return this._desc;
		}
		
		public function get path():String{
			return SiteStatic.getPath(url);
		}
		public function get thumb():String{
			return SiteStatic.getPath(pre);
		}
		
	}
}